/**
 * 👨‍💻 伟谭
 * 📅 2017/11/25
 */

#import "TWTypeListBTableViewCell.h"

@interface TWTypeListBTableViewCell()

@property(nonnull,nonatomic,strong) UIButton *btnSubTitle;



@end

@implementation TWTypeListBTableViewCell

#pragma mark - Class method

#pragma mark - Life cycle

#pragma mark - Override
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if(self){
        
        self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
        self.textLabel.text = @"I'm Teacher";
        
        
        UIButton *btnSubTitle = [UIButton hj_buttonWithTitle:@"54" tintColor:[UIColor grayColor] font:Font(12.0f) backgroundColor:nil touchUpInsideTarget:nil action:nil];
        btnSubTitle.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;
        btnSubTitle.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
        [btnSubTitle setContentEdgeInsets:UIEdgeInsetsMake(2.0f, 6.0f, 2.0f, 6.0f)];
        
        btnSubTitle.clipsToBounds = YES;
        btnSubTitle.layer.cornerRadius = 2.0f;
        btnSubTitle.layer.borderWidth = 0.5f;
        btnSubTitle.layer.borderColor = [UIColor grayColor].CGColor;
        
        [self.contentView addSubview:btnSubTitle];
        _btnSubTitle = btnSubTitle;
        
        [btnSubTitle mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.offset(0.0f);
            make.right.offset(-6.0f);
        }];
        
        
    }
    
    return self;
}

#pragma mark - Event response

#pragma mark - Protocol

#pragma mark <<#XXXDelegate#>>

#pragma mark - Public method

#pragma mark - Private method

#pragma mark - Getter & Setter

@end
